package com.yang.service.Impl;
import com.yang.entity.OrderDetails;
import com.yang.entity.OrderItem;
import com.yang.mapper.OrderMapper;
import com.yang.service.OrderService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderMapper orderMapper;

    @Override
    public List<OrderDetails> getOrderList(Integer userId) {
        return orderMapper.getOrderListByUserId(userId);
    }
}
